package cn.zhouchao.system.service.impl;

import cn.zhouchao.basic.service.impl.BaseServiceImpl;
import cn.zhouchao.system.domain.Systemdictionarydetail;
import cn.zhouchao.system.mapper.SystemdictionarydetailMapper;
import cn.zhouchao.system.service.ISystemdictionarydetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemdictionarydetailServiceImpl extends BaseServiceImpl<Systemdictionarydetail> implements ISystemdictionarydetailService {

    @Autowired
    private SystemdictionarydetailMapper systemdictionarydetailMapper;

    /*抽屉：通过数据类型查询明细*/
    @Override
    public List<Systemdictionarydetail> findDetailByTypeId(Long id) {
        return systemdictionarydetailMapper.findDetailByTypeId(id);
    }
    //=========================== 重写以下方法/加事务/加日志注解 =================================
//    /*新增*/
//    @AnnSysR(des = "数据明细的添加方法",weyname = "add")
//    @Transactional
//    @Override
//    public void add(Systemdictionarydetail systemdictionarydetail) {
//        super.add(systemdictionarydetail);
//    }
//    /*删除*/
//    @AnnSysR(des = "数据明细的删除方法",weyname = "delete")
//    @Transactional
//    @Override
//    public void delete(Long id) {
//        super.delete(id);
//    }
//    /*批量删除*/
//    @AnnSysR(des = "数据明细的批量删除方法",weyname = "batchDelete")
//    @Transactional
//    @Override
//    public void batchDelete(List<Long> ids) {
//        super.batchDelete(ids);
//    }
//    /*修改*/
//    @AnnSysR(des = "修改方法",weyname = "update")
//    @Transactional
//    @Override
//    public void update(Systemdictionarydetail systemdictionarydetail) {
//        super.update(systemdictionarydetail);
//    }
}
